<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑资料 - {dede:global.cfg_webname/}</title>
<link href="../../img/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../../img/js/all.js"></script>
<script language="javascript" src="../../img/js/cookie.js"></script>
<script language="javascript" src="../../img/js/Calendar.js"></script>
<script language="javascript" src="../../img/js/manage.js"></script>


<script language="javascript"> 
manageWhere = manageNav["manageEdit"];
HtmlInitFuc(function(){
 
	var inputObjArray = document.getElementsByTagName("input");
	for(var i=0; i<inputObjArray.length; i++){
		if(inputObjArray[i].type=="text"){
			switch(inputObjArray[i].name){
				case "birthday":
					break;
				default:
					inputObjArray[i].onfocus = function(){
						if(this.value==this.title || ("请输入"+this.value)==this.title){ 
							this.value=''; 
							this.style.color='#000000';
						}
						this.className = "inputb_hover";
					}
					inputObjArray[i].onblur = function(){
						if(this.value==""){
							this.value=this.title;
							this.style.color='#999';
						} 
						this.className = "inputb";
					}				
					break;
			}
		}
	}	
	return;
});
 
</script>

<script>
function verify(){

	//联系人姓名必须填写
	if( $("real_name").value=="" || $("real_name").value=="请输入您的真实姓名"){
		alert("请输入您的真实姓名");
		$("real_name").focus();
		return false;
	}
	
	//联系电话校验
	v_mobile = $("real_mb");
	v_phone = $("phone");
	if(v_mobile.value=="" && v_phone.value==""){
		alert("联系电话两项必填一项，请您重新输入。");
		v_mobile.focus();
		return false;   
	}
	
	if(v_mobile.value!=""){
		if(!egrMobileCheck(v_mobile.value)){
			alert("您的手机号码输入格式错误，请您重新输入。");
			v_mobile.focus();
			return false;   
		}
	}
	
	//邮件校验
	v_email = $("real_mail");
	if(v_email.value!=""){
		if(!checkMail(v_email.value)){
			alert("邮件格式错误，请您重新输入。");
			v_email.focus();
			return false;
		} 
	}  
	return true;
}
</script>

</head>
 
<body>
<!--Head-->
<script language="javascript" type="text/javascript" src="/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
function CheckLogin(){
	  var taget_obj = document.getElementById('_ajax_feedback');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_feedback.php");
	  DedeXHTTP = null;
}
function Check_head_Login(){
	  var taget_obj = document.getElementById('_Check_head_Login');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_head.php");
	  DedeXHTTP = null;
}
function CheckLogin_index(){
	  var taget_obj = document.getElementById('_login_index');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_index.php");
	  DedeXHTTP = null;
}
</script>
<?php
   pasterTempletDiy("default/head_index.htm");
?>
<!--Head_end-->
<div id="wz">&nbsp;&nbsp;&nbsp;您当前所在的位置： <a href="/">网站首页</a> » <a href="/users/index.php">会员中心首页</a> » 修改个人资料</div>
<!--Main-->
<div id="page">
  <?php include(DEDEMEMBER."/templets/left.htm"); ?>
  <div id="uright">
    <div id="urtitle"><strong>个人资料</strong></div>

    <div id="urborder">           <!--<div id="urmessage">
        <div>完善您的个人资料（带※）并激活您的邮箱， 以便获取50元抵用卷。</div>
      </div>
      -->
            <form name="vbform1" action="edit_my.php" id="formManageEidt" method="post" onSubmit="return verify()">
            <input type="hidden" name="dopost" value="save" />
          <ul id="urinput" style="padding-bottom:10px;_padding-bottom:0;">
            <li style="padding:0;"><span>卡 号：</span><?php echo $row['mid'];?></li>
           
          </ul>
        <hr />
          <ul id="urinput" class="mar_t">
            <li><span><em>※</em>真实姓名：</span>
                <input id="real_name" name="real_name" type="text" value="<?php if($row['name']=="")
                {
                echo '请输入您的真实姓名';
                }
                else
                {
                echo $row['name'];
                } 
                ?>" title="请输入您的真实姓名" class="inputb" maxlength="15" />
            </li>
             <li><span><em>※</em>手机号码：</span>
                <input id="real_mb" name="real_mb" type="text" value="<?php if($row['mb']=="")
                {
                echo '请输入您的手机号码';
                }
                else
                {
                echo $row['mb'];
                } 
                ?>" title="请输入您的手机号码" class="inputb" maxlength="15" />
            </li>
             <li><span><em>※</em>电子邮箱：</span>
                <input id="real_mail" name="real_mail" type="text" value="<?php if($row['email']=="")
                {
                echo '请输入您的电子邮箱';
                }
                else
                {
                echo $row['email'];
                } 
                ?>" title="请输入您的电子邮箱" class="inputb" maxlength="15" />
            </li>
            <li><span><em>※</em>称 呼：</span><label><input type="radio" name="gender" value="1" <?php if($row['sex']=="1")
                {
                echo 'checked="checked"';
                }
                else
                {
                echo '';
                } 
                ?>/>先生</label> <label><input type="radio" name="gender" value="2" <?php if($row['sex']=="2")
                {
                echo 'checked="checked"';
                }
                else
                {
                echo '';
                } 
                ?>>小姐</label> </li>
            <li><span><em>※</em>生 日：</span>
                <input id="birthday"  name="birthday" type="text" value="<?php if($row['birthday']=="")
                {
                echo '';
                }
                else
                {
                echo $row['birthday'];
                } 
                ?>" style="width:80px;" title="请输入选择您的生日" onfocus="_dateObjTwo.ShowDiv(this);" class="inputb" />
            </li>
            <li><span>QQ ：</span>
                <input id="qq"  name="qq" type="text" value="<?php if($row['qq']=="")
                {
                echo '请输入您的qq号码';
                }
                else
                {
                echo $row['qq'];
                } 
                ?>" maxlength="10" title="请输入您的qq号码" class="inputb" />
            </li>
            <li><span>固 话：</span>
                <input id="phone"  name="phone" type="text" value="<?php if($row['tel']=="")
                {
                echo '请输入您的qq号码';
                }
                else
                {
                echo $row['tel'];
                } 
                ?>" maxlength="30" title="请输入您的固话" class="inputb" />
            </li>
            <li><span>传 真：</span>
                <input id="fax"  name="fax" type="text"  maxlength="30" title="请输入您的传真" class="inputb" value="<?php if($row['fax']=="")
                {
                echo '请输入您的传真';
                }
                else
                {
                echo $row['fax'];
                } 
                ?>"/>
            </li>
            <li><span>联系地址：</span>
                <input id="user_address"  name="user_address" type="text" value="<?php if($row['dz']=="")
                {
                echo '请输入您的联系地址';
                }
                else
                {
                echo $row['dz'];
                } 
                ?>" style="width:250px;" title="请输入您的联系地址" maxlength="128" class="inputb" />
                <div>
                  <input type="submit" value=" 修 改 " class="inputc" />
                </div>
            </li>
          </ul>
      </form>
    </div>
  </div>
</div>
<!--Main_end-->

  <!--Explanation_end--> 

<?php
   pasterTempletDiy("default/footer.htm");
?>

<!--Footer_end-->
</body>
</html>